home *** CD-ROM | disk | FTP | other *** search
/ SVM Mac 58 / CD-ROM N°58.iso / navigateurs / Netscape Folder / chrome / sidebar / content / default / customize.xul < prev    next >
Encoding:
Extensible Markup Language  |  2000-04-19  |  5.7 KB  |  175 lines  |  [TEXT/MOSS]

  1. <?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
  2. <!--
  3.  
  4.   The contents of this file are subject to the Netscape Public License
  5.   Version 1.1 (the "NPL"); you may not use this file except in
  6.   compliance with the NPL.  You may obtain a copy of the NPL at
  7.   http://www.mozilla.org/NPL/
  8.  
  9.   Software distributed under the NPL is distributed on an "AS IS" basis,
  10.   WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  11.   for the specific language governing rights and limitations under the
  12.   NPL.
  13.  
  14.   The Initial Developer of this code under the NPL is Netscape
  15.   Communications Corporation.  Portions created by Netscape are
  16.   Copyright (C) 1999 Netscape Communications Corporation.  All Rights
  17.   Reserved.
  18.  
  19. -->
  20.  
  21. <?xml-stylesheet href="chrome://sidebar/skin/" type="text/css"?>
  22. <?xml-stylesheet href="chrome://sidebar/skin/customize.css" type="text/css"?>
  23.  
  24. <!DOCTYPE window SYSTEM "chrome://sidebar/locale/customize.dtd" >
  25.  
  26. <window
  27.   xmlns:html="http://www.w3.org/TR/REC-html40"
  28.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  29.   onload="Init();" 
  30.   id="main-box"
  31.   class="dialog"
  32.   windowtype="sidebar:customize"
  33.   align="vertical">
  34.  
  35.   <html:script src="chrome://sidebar/content/customize.js" />
  36.  
  37.   <!-- Dialog title -->
  38.   <html:div class="title">
  39.     &sidebar.customize.title.label;
  40.   </html:div>
  41.  
  42.   <html:div>
  43.     <html:hr />
  44.   </html:div>
  45.  
  46.   <!-- The two-pane -->
  47.   <box align="horizontal" flex="1*">
  48.  
  49.     <!-- All of the panels that are available -->
  50.     <box align="vertical" flex="1*">
  51.  
  52.       <html:div class="subtitle">
  53.       &sidebar.customize.additional.label;
  54.       </html:div>
  55.  
  56.       <tree id="other-panels" flex="1"
  57.         datasources="rdf:null"
  58.         indent="true"
  59.         multiple="true"
  60.         style="height:20em">
  61.   
  62.         <template>
  63.           <treechildren>
  64.             <treeitem uri="rdf:*"
  65.               title="rdf:http://home.netscape.com/NC-rdf#title"
  66.               content="rdf:http://home.netscape.com/NC-rdf#content"
  67.               link="rdf:http://home.netscape.com/NC-rdf#link"
  68.               haslink="rdf:http://home.netscape.com/NC-rdf#haslink"
  69.               open="rdf:http://home.netscape.com/NC-rdf#open"
  70.               persist="open">
  71.               <treerow>
  72.                 <treecell indent="true" 
  73.                   value="rdf:http://home.netscape.com/NC-rdf#title"/>
  74.               </treerow>
  75.             </treeitem>
  76.           </treechildren>
  77.         </template>
  78.          <treecol />
  79.         <treechildren onclick="SelectChangeForOtherPanels(event, event.target.parentNode.parentNode)" />
  80.       </tree>
  81.  
  82.       <!-- xxxslamm Need to add descriptive panel text here -->
  83.       <box align="horizontal" class="button-group">
  84.         <titledbutton id="add_button" onclick="AddPanel()"
  85.           class="dialog push"
  86.           value="&sidebar.customize.add.label;"
  87.           disabled="true"/>
  88.  
  89.         <titledbutton id="preview_button" onclick="PreviewPanel()"
  90.           class="dialog push"
  91.           value="&sidebar.customize.preview.label;"
  92.           disabled="true"/>
  93.       </box>
  94.     </box> 
  95.     
  96.     <!-- Spacing between the left and right halves of the dialog -->
  97.     <spring style="width:2em"/>
  98.  
  99.     <!-- The panels that the user currently has chosen -->
  100.     <box align="vertical" flex="1*">
  101.       <html:div class="subtitle">
  102.       &sidebar.customize.current.label;
  103.       </html:div>
  104.  
  105.       <box align="horizontal" class="box-group" flex="1*">
  106.         <tree id="current-panels" onclick="SelectChangeForCurrentPanels();"
  107.           datasources="rdf:null"
  108.           multiple="true"
  109.           style="height:0px">
  110.           <template>
  111.            <treechildren>
  112.              <treeitem uri="rdf:*"
  113.                title="rdf:http://home.netscape.com/NC-rdf#title"
  114.                customize="rdf:http://home.netscape.com/NC-rdf#customize"
  115.                content="rdf:http://home.netscape.com/NC-rdf#content">
  116.                <treerow>
  117.                  <treecell
  118.                    value="rdf:http://home.netscape.com/NC-rdf#title" />
  119.                </treerow>
  120.              </treeitem>
  121.            </treechildren>
  122.          </template>
  123.          <treecol />
  124.          <!-- We explicitly create a 'treechildren' so we can refer
  125.               to it from the script -->
  126.          <treechildren id="current-panels-root"/> 
  127.        </tree>
  128.  
  129.        <!-- Spacing between the right selector and "Reorder" -->
  130.        <spring style="width:5px"/>
  131.  
  132.         <!-- The 'reorder' buttons -->
  133.         <box align="vertical">
  134.           <spring flex="50%"/>
  135.           <titledbutton onclick="MoveUp();" id="up" class="borderless up" />
  136.           <html:div>
  137.           &sidebar.customize.reorder.label;
  138.           </html:div>
  139.           <titledbutton onclick="MoveDown();" id="down"
  140.             class="borderless down" />
  141.           <spring flex="50%"/>
  142.         </box>
  143.       </box>
  144.  
  145.       <box align="horizontal" class="button-group">
  146.         <titledbutton id="customize-button" onclick="CustomizePanel();" 
  147.           class="dialog push"
  148.           value="&sidebar.customize.customize.label;" />
  149.         <titledbutton id="remove-button" onclick="RemovePanel()"
  150.           class="dialog push"
  151.           value="&sidebar.customize.remove.label;" />
  152.       </box>
  153.     </box> 
  154.   </box>
  155.  
  156.   <html:div>
  157.     <html:hr />
  158.   </html:div>
  159.  
  160.   <!-- The 'Save' and 'Cancel' buttons -->
  161.   <box align="horizontal">
  162.     <spring flex="48%"/>
  163.     <titledbutton onclick="window.close()"
  164.        class="dialog push"
  165.        value="&sidebar.customize.cancel.label;" />
  166.     <spring flex="4%"/>
  167.     <titledbutton id="save_button" onclick="Save();"
  168.        class="dialog push"
  169.        value="&sidebar.customize.save.label;"
  170.        disabled="true"/>
  171.     <spring flex="48%"/>
  172.   </box>
  173. </window>
  174.  
  175.